package com.google.cbmgraph.cell;

import android.graphics.Color;
import android.graphics.Paint;
/**
 * This class stores all of the format information about cell values
 * Because cells are minimal objects static final values signify various states
 * and having them all declared in a static class keeps everything uniform and 
 * readable
 * @author lawlerr1
 *
 */
public final class CellFormat {
	
	// add the statuses
	public static final int EMPTYCELL = 0;
	public static final int NODECELL = 1;
	public static final int NOTEDCELL = 2;
	public static final int SELECTEDCELL = 3;
	
	// create constants for cell size
	public static final int X = 30;
	public static final int Y = 50;

	// float values for drawing
	public static final float WIDTH = X;
	public static final float HEIGHT = Y;
	
	// Color control is here.
	final static Paint getCellColor(int status){
		Paint paint = new Paint();
		switch(status){
			case EMPTYCELL:
				paint.setColor(Color.BLACK);
				break;
			case NODECELL:
				paint.setColor(Color.WHITE);
				break;
			case NOTEDCELL:
				paint.setColor(Color.CYAN);
				break;
			case SELECTEDCELL:
				paint.setColor(Color.MAGENTA);
				break;
			default:
				paint.setColor(Color.BLUE);
				break;
		}
		return paint;
	}
}
